Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more unit tests for aggregator #878

Closed
wants to merge 7 commits into from

Conversation

anusha-ctrl
Copy link
Contributor

@anusha-ctrl anusha-ctrl commented Sep 20, 2023

Why this should be merged

This new unit test is failing even though it shouldn't be.
Why does this test get 500/500 signature weight? Shouldn't it the child context be canceled by VerifyWeight after we hit 300/500 or 60/100 and therefore we shouldn't be able to fetch more signatures?''

Edit: Spun up 100 go routines. signatureFetchCancel(), aka the child ctx gets called exactly right. cancel propagates down to `fetchSignature and gets BLS signatures for about 80 go routines and the rest get handled by ctx.Done(). This makes me think we will fetch signatures from every node, even if a cancel triggers.

#881 this should help the overfetching

How this works

How this was tested

How is this documented

@aaronbuchwald
Copy link
Collaborator

Closing in favor of #936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants